class TravelVO:
    def __init__(self, travel_id=None, travel_reason=None, travel_detail=None, apply_date=None, start_date=None,
                 end_date=None, food_cost=None, transport_cost=None, hotel_cost=None, cost_detail=None,
                 advance_payment=None, user_id=None, user_name=None, user_phone=None, user_email=None, position=None,
                 travel_status=None, travel_status_name=None, budget=None, travel_rejection=None, approval_id=None,
                 payment=None, advance_rejection=None, advance_status=None, advance_status_name=None):
        self.travel_id = travel_id
        self.travel_reason = travel_reason
        self.travel_detail = travel_detail
        self.apply_date = apply_date
        self.start_date = start_date
        self.end_date = end_date
        self.food_cost = food_cost
        self.transport_cost = transport_cost
        self.hotel_cost = hotel_cost
        self.cost_detail = cost_detail
        self.advance_payment = advance_payment
        self.user_id = user_id
        self.user_name = user_name
        self.user_phone = user_phone
        self.user_email = user_email
        self.position = position
        self.travel_status = travel_status
        self.travel_status_name = travel_status_name
        self.budget = budget
        self.travel_rejection = travel_rejection
        self.approval_id = approval_id
        self.payment = payment
        self.advance_rejection = advance_rejection
        self.advance_status = advance_status
        self.advance_status_name = advance_status_name

    def to_dict(self):
        return {
            "travelId": self.travel_id,
            "travelReason": self.travel_reason,
            "travelDetail": self.travel_detail,
            "applyDate": self.apply_date,
            "startDate": self.start_date,
            "endDate": self.end_date,
            "foodCost": self.food_cost,
            "transportCost": self.transport_cost,
            "hotelCost": self.hotel_cost,
            "costDetail": self.cost_detail,
            "advancePayment": self.advance_payment,
            "userId": self.user_id,
            "userName": self.user_name,
            "userPhone": self.user_phone,
            "userEmail": self.user_email,
            "position": self.position,
            "travelStatus": self.travel_status,
            "travelStatusName": self.travel_status_name,
            "budget": self.budget,
            "travelRejection": self.travel_rejection,
            "approvalId": self.approval_id,
            "payment": self.payment,
            "advanceRejection": self.advance_rejection,
            "advanceStatus": self.advance_status,
            "advanceStatusName": self.advance_status_name
        }
